const express = require('express');
const redisTestController = require('../controllers/redisTestController');
const authMiddleware = require('../middlewares/authMiddleware');

const router = express.Router();

// Redis连接测试路由
router.get('/connection', redisTestController.testConnection);

// Redis基本操作测试路由
router.get('/basic', redisTestController.testBasicOperations);

// Redis哈希操作测试路由
router.get('/hash', redisTestController.testHashOperations);

// Redis列表操作测试路由
router.get('/list', redisTestController.testListOperations);

// 获取Redis信息
router.get('/info', redisTestController.getRedisInfo);

// 清理测试数据
router.delete('/cleanup', redisTestController.cleanupTestData);

module.exports = router;